6. Electronics desing

Group assignment

In this week, we have to compare the performance and development workflow for different architectures and look at the different datasheets of the microcontrollers found on our local node.

To start architectures are basically families of chips, "architecture" refers to the fundamental design and structure of the computing core and its instruction set. Below you can see the ones that were presented to us.

Some descriptions for comparison


How does Python work?

The Python implementation is called byte code. This cannot be understood by the CPU, so you need an interpreter called a Python Virtual Machine (PVM) that executes the bytecodes.

Programming XIAO RP-2040

XIAO RP-2040, has 14 PIN GPIO with input, output and interpretation functions, which contains 11 digital pins, 4 analog pins, 11 PWM, 1 12c interface, 1 SPI interface and 1 SWD Bonding pad interface.

What is Arduino?

Arduino is an open source electronics creation platform, which is based on free, flexible and easy-to-use hardware and software for creators and developers. This platform allows the creation of different types of single-board microcomputers that the community of creators can give different types of use to.

To install IDE, the first thing you need to do to be able to upload a program to Arduino is to have the development environment (IDE) installed on your computer. The IDE is the application in which you are going to write your programs, compile them and upload them to the board.

In order to install it you have to go to the "Software" section of the official Arduino website. Within this page, on the right, all the download options appear. Choose one option or another depending on the operating system of your computer.

Already in the sketch, we have to look in tools for the microcontroller that we will use, in my case I used XIAO RP 2040, since I have it thanks to the work I did in week 4, you must also locate the port where you connect and install the libraries to be able to perform coding.

Thank God and the software developers, the system generates by default a code base with two gaps; Void Setup which is a part of our code that runs once and Void Loop which runs constantly.

So this is what I start to generate the code for programming the on and off of the LEDs, as in the code of the page we must remember that something opens to start a function and closes to finish it, in this case they are the parentheses, so They open in Void Setup pinmode is how I notify my program that I am going to use it, I add parameters that will tell me if it is input or output of information and for which pin, already in Void Loop placing the pin label, parentheses open indicating the time on and off.

Results

code

								void setup(){
									pinMode(led,OUTPUT);
									}
									void loop(){
									digitalWrite(led,HIGH);
									delay(1000);
									digitalWrite(led,LOW);
									delay(1000);
									}